<div class="bjui-pageContent" >
        <div data-layout-h="0">
                <!-- 内容区 -->
                <form action="{:U('System/goal_add')}" class="pageForm nice-validator n-red" data-loadingmask='false' data-toggle="validate" novalidate="novalidate" data-reload-navtab="true" method="post" >
                        <input type="hidden" name="id" value="{$_GET.id|default=''}" />
                        <table class="table table-condensed table-hover">
                                <tr>
                                        <th ><label style='margin-left:40px;'>地区名称：</label></th>
                                        <td>
                                                <input type="text" name="name" data-rule="required"  value="{$zone.name|default=''}" />
                                        </td>

                                </tr>
                                <tr>
                                        <th ><label style='margin-left:40px;'>上级：</label></th>
                                        <td>
                                                <input type="hidden" name="pzone.id"  value="{$zone.pid}" />
                                                <input type="text" data-title='选择父级' name="pzone.name" data-rule='required' value="{$zone.pname}" size="15" data-toggle="lookup" data-url="{:U('Pub/get_location_single?id='.$zone['pid'])}" data-group="pzone" data-width="300" data-height="400">
                                        </td>

                                </tr>
                                <tr>
                                        <th ><label style='margin-left:40px;'>重定向字符：</label></th>
                                        <td>
                                                <input type="text" name="write_string" data-rule="required"  value="{$zone.write_string|default=''}" />
                                        </td>

                                </tr>
                                <tr>
                                        <th ><label style='margin-left:40px;'>所属：</label></th>
                                        <td>
                                                <select name="m_type" data-toggle="selectpicker"  >
                                                        <option value='1' {eq name='zone.m_type' value='1'} selected="selected" {/eq} >国内</option>
                                                        <option value='2' {eq name='zone.m_type' value='2'} selected="selected" {/eq}>出境</option>
                                                </select>
                                        </td>

                                </tr>
                                
                                <tr>
                                        <th ><label style='margin-left:40px;'>状态：</label></th>
                                        <td>
                                                <select name="status" data-toggle="selectpicker"  >
                                                        <option value='1' {eq name='zone.status' value='1'} selected="selected" {/eq} >启用</option>
                                                        <option value='0' {eq name='zone.status' value='0'} selected="selected" {/eq}>禁用</option>
                                                </select>
                                        </td>

                                </tr>
                                <tr>
                                        <th ><label style='margin-left:40px;'>是否突出显示：</label></th>
                                        <td>
                                                <select name="zhuozhong" data-toggle="selectpicker"  >
                                                        <option value='1' {eq name='zone.zhuozhong' value='1'} selected="selected" {/eq} >是</option>
                                                        <option value='0' {eq name='zone.zhuozhong' value='0'} selected="selected" {/eq}>否</option>
                                                </select>
                                        </td>

                                </tr>
                                <tr>
                                        <th><label style='margin-left:40px;'>地区类型</label></th>
                                        <td> 
                                                <div style="width:300px;">
                                                        {volist name="cate" id="vo"}
                                                        <label>
                                                                <input type="checkbox"  name="cid[]" value="{$vo.id}"   data-toggle="icheck" data-label="{$vo.name}" 
                                                                       {if condition="in_array($vo['id'],$zone['cid'])"}
                                                                       checked="checked"
                                                                       {/if} />
                                                        </label>
                                                        {/volist}
                                                </div>
                                        </td>
                                </tr>


                        </table>
                </form>
        </div>

</div>
<div class="bjui-pageFooter" border='none'>
        <ul>
                <li><button type="button" class="btn btn-close">关闭</button></li>
                <li><button type="submit" class="btn btn-default">提交</button></li>
        </ul>
</div>